package com.qq.factory.simple;

/**
 * @author Bob
 */
public class PurchasingFactory {

    public static Purchasing createPurchasing(PurchasingType type) {
        Purchasing purchasing = null;
        switch (type) {
            case 公开招标:
                purchasing = new PublicPurchasing();
                break;
            case 邀请招标:
                purchasing = new InvitationPurchasing();
                break;
            case 议标:
                purchasing = new BargainingPurchasing();
                break;
            default:
                break;
        }
        return purchasing;
    }
}
